import { uniFetch } from '@/utils/request'

//账号登录
export const loginAPI = (data) => {
    return uniFetch.post("/driver/login/account", data);
}

//获取用户信息
export const getUserDataAPI = () => {
    return uniFetch.get("/driver/users");
}

//获取任务信息
export const getUserTaskAPI = (year, month) => {
    return uniFetch.get("/driver/users/taskReport", { year, month });
}
//获取车辆信息
export const getUserTruckAPI = () => {
    return uniFetch.get("/driver/users/truck");
}